package com.rlax.ccdemo.service.product;

import com.rlax.ccdemo.base.consts.AppName;
import com.rlax.ccdemo.base.consts.BizConstant;
import com.rlax.corebin.launch.listener.CorebinApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 服务启动类
 * @author Rlax
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(BizConstant.BUSINESS_PACKAGE)
@ComponentScan(basePackages = {BizConstant.BUSINESS_PACKAGE})
public class ProductServiceApplication {

    public static void main(String[] args) {
        CorebinApplication.run(AppName.SERVICE_PRODUCT_NAME, ProductServiceApplication.class, args);
    }

}
